<?php namespace web\admin\controller;
/** .-------------------------------------------------------------------
 * |  Software: [HDPHP framework]
 * |      Site: www.hdphp.com
 * |-------------------------------------------------------------------
 * |    Author: 向军 <2300071698@qq.com>
 * |    WeChat: aihoudun
 * | Copyright (c) 2012-2019, www.houdunwang.com. All Rights Reserved.
 * '-------------------------------------------------------------------*/

class Entry extends Common {
	
	private $db;
	
	public function __construct(){
		$this->db=new \system\model\admin;
		parent::__construct();
	}
	
	
	
	//首页
	public function index() {
		View::make();
	}
	
	
	
	//退出方法
	public function out(){
		session_unset();		//删除数据
		session_destroy();		//删除服务器文件
		message('退出成功',U('admin/login/login'));
	}
	
}